﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="ReleaseComment.aspx.vb" Inherits="gojira.ReleaseComment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1" GridLines="None">
        <Columns>
            <asp:TemplateField HeaderStyle-HorizontalAlign="Left" 
                HeaderText="Details of this release:">
                <ItemTemplate>
                    <h1>
                        <%# Eval("FilmName") %>
                    </h1>
                    <p>
                        Format: <%# Eval("Format")%>
                    </p>
                    <p>
                        Region: <%# Eval("Region")%>
                    </p>
                    <p>
                        <asp:Image runat="server" Height="200px" ImageUrl='<%# Eval("FrontCover") %>' 
                            Width="150px" />
                    </p>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:godzillaFilms %>" 
        ProviderName="<%$ ConnectionStrings:godzillaFilms.ProviderName %>" 
        SelectCommand="SELECT * FROM [godzillaFilmsQuery] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    Comment on this release:<br />
    <br />
    Subject:<br />
    <asp:TextBox ID="tb_subject" runat="server"></asp:TextBox>
    <br />
    Comment:<br />
    <asp:TextBox ID="tb_comment" runat="server" Height="141px" Width="324px" TextMode="MultiLine"></asp:TextBox>
    <br />
    <br />
    <asp:Button ID="btn_add" runat="server" Text="Add comment" />
</asp:Content>
